package work.mediway.mdm.biz.dto.dict;

import java.util.List;
import java.util.Map;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2022/9/5
 */
@Data
@ApiModel("字典删除")
public class DictGeneralDeleteDTO {

    @NotNull(message = "不能为空")
    @ApiModelProperty(value = "主键键值")
    private List<Map<String, Object>> primaryVals;

    @NotBlank(message = "不能为空")
    @ApiModelProperty("表名")
    private String table;

    public DictGeneralDeleteDTO(List<Map<String, Object>> primaryVals, String table) {
        this.primaryVals = primaryVals;
        this.table = table;
    }
}
